package com.wwg.design.patten.observer.case1;

/**
 * @类描述: TODO
 * @Author wwg
 * @date: 2021/7/20 18:58
 * @Version: 1.0
 **/
public class Observer extends AbstractObserver{

    public Observer(String s) {
        super.setName(s);
    }

    @Override
    public void call(String someThingHappen) {
        System.out.println(getName() +"收到邮件，"+ someThingHappen);
    }
}
